const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/modules/' + file + '.vue')
    : file => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'packet',
    component: _import('packet/packet'),
    name: 'packet',
    meta: { title: '标签包管理', permission: 'front:page:packet' }
  },
  {
    path: 'packet/mount/:packetId',
    component: _import('packet/mount'),
    name: 'packet-mount',
    meta: { title: '标签包挂载', permission: 'front:page:packet' }
  }
]
